import java.util.Scanner;
public class Main2 {

	public static void main(String[] args) {

			Scanner sc = new Scanner(System.in);
	        StringBuilder stringBuilder = new StringBuilder();
			String str=null;
	        while (true) {
				int n = sc.nextInt();
				for (int i = 0; i < n; i++) {
					stringBuilder.append(i);
				}
				int begin,end;
				begin=sc.nextInt();
				end=sc.nextInt();
				str=stringBuilder.substring(begin, end);
				System.out.println(str);
			}
			
		}

	}


